{% load i18n %}

<table>
<tr>
  <th>Name</th>
  <th>Type</th>
  <th>Duration</th>
  <th>People</th>
  <td>Actions</td>
</tr>
{% for session in session_list %}
  <tr>
    <td>
      <a href="{% url event_session_detail object_id=session.id %}">{{ session.name }}</a>
    </td>
    <td>{{ session.type }}</td>
    <td>{{ session.duration }}</td>
    <td>
      {% for participant in session.participant.all %}
        {{ participant }}
      {% endfor %}
    </td>
    <td>
      <a href="{% url event_session_edit session_id=session.id%}"><img src="{{ MEDIA_URL }}icons/application_form_edit.png" alt="Edit" title="Edit '{{ session }}' session"/></a>
    </td>
  </tr>
{% endfor %}
</table>
